﻿#ifndef __LVGL_refresh_H__
#define __LVGL_refresh_H__

#include "main.h"
#include "lvgl_project.h"

#if 1
#define lvgl_refresh_debug(format, ...) lvgl_project_debug("[refresh]-",format,##__VA_ARGS__);
#else
#define lvgl_refresh_debug(format, ...) ;
#endif

#define REFRESH_STYLE 1


enum {
	lvgl_refresh_JieShu = 0,
	lvgl_refresh_KaiShi,
	lvgl_refresh_Zhong,
}lvgl_refresh_Sta;


typedef struct
{
	char buf[20];

	lv_obj_t *cont_main;

	lv_task_t *task;

	lv_obj_t *spinner;
	lv_obj_t *image;

	int image_cnt;
	lv_obj_t **fu;
	int status;

	int *user_data;

	int cont_main_y;

	lv_anim_t anim_in;
	lv_anim_path_t anim_path_in;
	lv_anim_t anim_out;
	lv_anim_path_t anim_path_out;
}_lvgl_refresh_data;

extern _lvgl_refresh_data lvgl_refresh_data;



void lvgl_refresh_create(lv_obj_t * Fu);
void lvgl_refresh_close(void);
void lvgl_refresh_start(lv_obj_t ** Fu,int * dat,int time);
void lvgl_refresh_Stop(void);
void refresh_anim_in_start(void);
void refresh_anim_out(void);


int lvgl_refresh_get_sta(void);

#endif
